#if !defined(AFX_REMOTEALARMCONFIG_H__49A678FE_178D_453E_A17F_CC483C2C2F86__INCLUDED_)
#define AFX_REMOTEALARMCONFIG_H__49A678FE_178D_453E_A17F_CC483C2C2F86__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// RemoteAlarmConfig.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CRemoteAlarmConfig dialog

class CRemoteAlarmConfig : public CDialog
{
// Construction
public:
	CRemoteAlarmConfig(CWnd* pParent = NULL);   // standard constructor
	CString	m_ip;
	CString	m_Username;
	CString m_Password;
	int		m_iServerport;
	int		m_iServertype;
	int		m_iChannelnumber;
	LONG	m_lServerID;
	LONG	m_lStartChannel;
	BOOL	bSetAlarmParams;
	int m_alarmin;
	int m_nCopyAlarmIn;
	int m_alarmout;
	int m_nCopyAlarmOut;
	int m_nCopyOutTime;
	NET_DVR_ALARMINCFG m_alarmincfg[MAX_ALARMIN];
	BOOL m_bGetAlarmIn[MAX_ALARMIN];
	NET_DVR_ALARMOUTCFG m_alarmoutcfg[MAX_ALARMOUT];
	BOOL m_bGetAlarmOut[MAX_ALARMOUT];
	DWORD dwReturned;
	DWORD m_dwAlarmInNum;
	DWORD m_dwAlarmOutNum;
	BOOL	m_bConnectServer;

	BOOL F_TimeTest();
// Dialog Data
	//{{AFX_DATA(CRemoteAlarmConfig)
	enum { IDD = IDD_SUBDLG_ALARMCFG };
	CComboBox	m_WeekDayCtrl;
	CComboBox	m_OutDelayCtrl;
	CComboBox	m_CopyOutCtrl;
	CComboBox	m_CopyInCtrl;
	CComboBox	m_AlarmOutCtrl;
	CComboBox	m_AlarmInCtrl;
	CComboBox	m_CopyTimeCtrl;
	CComboBox	m_AlarmInTypeCtrl;
	BOOL	m_bAlarmIn;
	int		m_iHour11;
	int		m_iHour12;
	int		m_iHour21;
	int		m_iHour22;
	int		m_iHour31;
	int		m_iHour32;
	int		m_iHour41;
	int		m_iHour42;
	int		m_iMin11;
	int		m_iMin21;
	int		m_iMin12;
	int		m_iMin22;
	int		m_iMin31;
	int		m_iMin32;
	int		m_iMin41;
	int		m_iMin42;
	CString	m_AlarmInName;
	//}}AFX_DATA
	afx_msg void OnAlarmcfgok();


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CRemoteAlarmConfig)
	public:
	virtual BOOL PreTranslateMessage(MSG* pMsg);
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CRemoteAlarmConfig)
	virtual BOOL OnInitDialog();
	afx_msg void OnCheckhandletype1();
	afx_msg void OnIntimeok();
	afx_msg void OnIntimecopy();
	afx_msg void OnIncopy();
	afx_msg void OnSelchangeComboalarmin();
	afx_msg void OnButtonalarmin();
	afx_msg void OnButtonptz();
	afx_msg void OnOuttimecopy();
	afx_msg void OnOutcopy();
	afx_msg void OnExit();
	afx_msg void OnCheckalarmin();
	afx_msg void OnSelchangeComboalarmout();
	afx_msg void OnOuttimeok();
	afx_msg void OnSelchangeCombooutweekday();
	afx_msg void OnInok();
	afx_msg void OnCancel();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_REMOTEALARMCONFIG_H__49A678FE_178D_453E_A17F_CC483C2C2F86__INCLUDED_)
